<template>
	<view class="content-padding" style="padding: 30rpx;">
		<view class="title">{{gonggao.title}}</view>
		<view class="fabuxinxi">
			<view class="">发布者：乐米平台</view>
			<view class="">发布时间：{{gonggao.time | dateFormat('YYYY年mm月dd日')}}</view>
		</view>
		<view class="content" v-html="gonggao.content" >
			
		</view>
	</view>
</template>

<script>
	import util from '@/common/util.js';
	export default {
		data() {
			return {
				gonggao:{}
			}
		},
		onLoad(options){
			uni.request({
				url:this.$jiekou.selectProblemInfo,
				data:{
					proId:options.id
				},
				success:(res)=>{
					if(res.data.result=="true"){
						this.gonggao = res.data;
					}
				}
			});
		},
		methods: {
			
		},
		filters:{
			dateFormat:(date,str)=>{
				if(date!=undefined){
					// date = date.replace(/-/g,"/");
					// date = util.dateUtils.parse(date);
					return util.dateUtils.dateFormat('YYYY年mm月dd日',new Date(date));
				}
			}
		}
	}
</script>

<style>
	page{
		background-color: #FFFFFF;
		border-top: 1upx solid  #F1F1F1;
	}
	.title{
		font-size: 32upx;
		letter-spacing: 0px;
		color: #333333;
		padding: 41upx 0 31upx 0;
		line-height: 32upx;
	}
	.fabuxinxi{
		display: flex;
		flex-flow: row;
		justify-content:space-between;
		font-size: 24px;
		letter-spacing: 0px;
		color: #666666;
	}
	.content{
		width: 100%;
		padding-top: 35upx;
	}
	.content img{
		width: 100%;
	}
</style>
